﻿using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Manager.Domain.AddressBook
{
    /// <summary>
    /// 部门
    /// </summary>
    [TableName("crm_Department")]
    [PrimaryKey("id")]
    public class Department
    {
        public int Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 父亲部门id。根部门为0
        /// </summary>
        public int Parentid { get; set; }
        /// <summary>
        /// 父亲部门id。根部门为1
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 企业微信部门ID (同步时，唯一标识)
        /// </summary>
        public int wxDepartmentId { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }
}